package com.example.sportplay.bean;

public class User {

    private int id;
    private String username;
    private String password;

    private String role;
    private boolean state;
    private String carnumber;
    public User(){

    }
    public User(String username,String password,String email,String role,boolean state,String carnumber){
        this.username=username;
        this.password=password;

        this.role=role;
        this.state=state;
        this.carnumber=carnumber;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public void setCarnumber(String carnumber) {
        this.carnumber = carnumber;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    public void setRole(String role) {
        this.role = role;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
    public String getCarnumber() {
        return carnumber;
    }



    public String getRole() {
        return role;
    }

    public boolean getState() {
        return state;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +

                ", role='" + role + '\'' +
                ", state=" + state +
                ", carnumber='" + carnumber + '\'' +
                '}';
    }
}
